package com.util;

import java.io.*;

import org.apache.log4j.Level;

import org.apache.log4j.Logger;

import org.apache.log4j.HTMLLayout;

import org.apache.log4j.WriterAppender;

public class S {

	static Logger logger = Logger.getLogger(S.class);

	public static void main(String args[]) {
System.out.println(1);
		HTMLLayout layout = new HTMLLayout();

		WriterAppender appender = null;

		try {

			FileOutputStream output = new FileOutputStream(
					"src/democreen/log4jexamples2/output2.html");

			appender = new WriterAppender(layout, output);

			logger.addAppender(appender);

			logger.setLevel((Level) Level.DEBUG);

			logger.debug("Here is some DEBUG");

			logger.info("Here is some INFO");

			logger.warn("Here is some WARN");

			logger.error("Here is some ERROR");

			logger.fatal("Here is some FATAL");

		} catch (Exception e) {
		}
	}
}
